package com.example.trader.mapper;


import com.example.trader.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface OrderManagerMapper {


    List<Order> getOrderList();

    int deleteOrderById(@Param("orderId") Integer orderId);

    List<Order> getOrderById(@Param("orderId") Integer orderId);

    int updateOrderStatus(@Param("order") Order order);
}
